package com.zhny.three.adjustable.valve.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class ThreeAdjustValveStoreEntry extends StoreEntity {
    @PropertyValue(alias = "电压",description = "电池电压",unit = "V",icon= IconConstract.Voltage,variableType= VariableType.Numerical,actions={
            @ActionValue(name= Operate.Check,commandCode="queryVoltage",eventType= EventType.Click)
    })
    private Double voltage;
    @PropertyValue(alias = "A阀门状态",description = "阀门开合度",unit = "",icon=IconConstract.Other,variableType=VariableType.AdJustableValve,actions={
            @ActionValue(name=Operate.Value,commandCode="openValve1",paramClass=AdjustableParam.class,eventType=EventType.Input),
            @ActionValue(name=Operate.Query,commandCode="queryStatus",eventType=EventType.Click),
            @ActionValue(name=Operate.Init,commandCode="initialize",eventType=EventType.Click)
    })
    private Integer a;
    @PropertyValue(alias = "B阀门状态",description = "阀门开合度",unit = "",icon=IconConstract.Other,variableType=VariableType.AdJustableValve,actions={
            @ActionValue(name=Operate.Value,commandCode="openValve2",paramClass=AdjustableParam.class,eventType=EventType.Input),
            @ActionValue(name=Operate.Query,commandCode="queryStatus",eventType=EventType.Click),
            @ActionValue(name=Operate.Init,commandCode="initialize",eventType=EventType.Input)
    })
    private Integer b;
    @PropertyValue(alias = "C阀门状态",description = "阀门开合度",unit = "",icon=IconConstract.Other,variableType=VariableType.AdJustableValve,actions={
            @ActionValue(name=Operate.Value,commandCode="openValve3",paramClass=AdjustableParam.class,eventType=EventType.Input),
            @ActionValue(name=Operate.Query,commandCode="queryStatus",eventType=EventType.Click),
            @ActionValue(name=Operate.Init,commandCode="initialize",eventType=EventType.Input)
    })
    private Integer c;
    @PropertyValue(alias = "D阀门状态",description = "阀门开合度",unit = "",icon=IconConstract.Other,variableType=VariableType.AdJustableValve,actions={
            @ActionValue(name=Operate.Value,commandCode="openValve4",paramClass=AdjustableParam.class,eventType=EventType.Input),
            @ActionValue(name=Operate.Query,commandCode="queryStatus",eventType=EventType.Click),
            @ActionValue(name=Operate.Init,commandCode="initialize",eventType=EventType.Input)
    })
    private Integer d;

    @PropertyValue(alias = "压力1",description = "阀门1压力",unit = "mpa",icon= IconConstract.Pressure,variableType= VariableType.Numerical,actions={
            @ActionValue(name= Operate.Check,commandCode="queryStatus",eventType= EventType.Click)
    })
    private Double pressure1;

    @PropertyValue(alias = "压力2",description = "阀门2压力",unit = "mpa",icon= IconConstract.Pressure,variableType= VariableType.Numerical,actions={
            @ActionValue(name= Operate.Check,commandCode="queryStatus",eventType= EventType.Click)
    })
    private Double pressure2;

    @PropertyValue(alias = "压力3",description = "阀门3压力",unit = "mpa",icon= IconConstract.Pressure,variableType= VariableType.Numerical,actions={
            @ActionValue(name= Operate.Check,commandCode="queryStatus",eventType= EventType.Click)
    })
    private Double pressure3;

    @PropertyValue(alias = "压力4",description = "阀门4压力",unit = "mpa",icon= IconConstract.Pressure,variableType= VariableType.Numerical,actions={
            @ActionValue(name= Operate.Check,commandCode="queryStatus",eventType= EventType.Click)
    })
    private Double pressure4;
}
